﻿using System;

namespace LuceneApiServer
{
    /// <summary>
    ///     表示查询信息
    /// </summary>
    [Serializable]
    public class LnQuery
    {
        /// <summary>
        ///     获取或设置索引名
        /// </summary>
        public string IndexName { get; set; }

        /// <summary>
        ///     获取或设置关键字
        /// </summary>
        public string Keywords { get; set; }

        /// <summary>
        ///     获取或设置匹配的字段
        /// </summary>
        public LnMatchField[] MatchFields { get; set; }

        /// <summary>
        ///     获取或设置排序的字段
        /// </summary>
        public LnSortField[] SortFields { get; set; }

        /// <summary>
        ///     获取或设置跳过的元素数量
        /// </summary>
        public int Skip { get; set; }

        /// <summary>
        ///     获取或设置取出的元素数量
        /// </summary>
        public int Take { get; set; }
        /// <summary>
        /// 是否可以设置高亮
        /// </summary>
        public bool CanSetHighLight { get; set; }
      
    }
}